import Vue from 'vue';
import VueRouter from 'vue-router';
import axios from '@/util/axios';
import VueAxios from 'vue-axios';

import 'normalize.css';
import Element from 'element-ui';
import '@assets/scss/base.scss';

import Index from '@/component/index.vue';
import router from "@/router/";

import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'

import * as directives from 'util/directives'
// Object.keys(directives).forEach(k => Vue.directive(k, directives[k]))

Vue.use(Viewer)
Vue.use(Element);
Vue.use(VueRouter);
Vue.use(VueAxios, axios);

import { store } from '@/store/'

export const vue: Vue = new Vue({
  el: '#app',
  router,
  store,
    render: h => h(Index)
})